import request from '@/utils/request'

// 查询高职专业对应本科专业关系列表
export function listHbMajor(query) {
  return request({
    url: '/edu/hbMajor/list',
    method: 'get',
    params: query
  })
}

// 查询高职专业对应本科专业关系详细
export function getHbMajor(hSchoolId) {
  return request({
    url: '/edu/hbMajor/' + hSchoolId,
    method: 'get'
  })
}

export function getInfoByHBId(query) {
  return request({
    url: '/edu/hbMajor/getInfoByHBId',
    method: 'get',
    params: query
  })
}

// 新增高职专业对应本科专业关系
export function addHbMajor(data) {
  return request({
    url: '/edu/hbMajor',
    method: 'post',
    data: data
  })
}

// 修改高职专业对应本科专业关系
export function updateHbMajor(data) {
  return request({
    url: '/edu/hbMajor',
    method: 'put',
    data: data
  })
}

// 删除高职专业对应本科专业关系
export function delHbMajor(hSchoolId) {
  return request({
    url: '/edu/hbMajor/' + hSchoolId,
    method: 'delete'
  })
}

// 导出高职专业对应本科专业关系
export function exportHbMajor(query) {
  return request({
    url: '/edu/hbMajor/export',
    method: 'get',
    params: query
  })
}